package com.a01_2021.thousandstimes.instance.service;

import com.a01_2021.thousandstimes.exception.CustomException;
import com.a01_2021.thousandstimes.general.entity.Experience;
import com.a01_2021.thousandstimes.instance.entity.Position;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author E1xP
 * @since 2021-03-10
 */
public interface IPositionService extends IService<Position> {

    Position add(Position position) throws CustomException;

    List<Position> getAll();

    Experience changePosition(long userId, long positionId, long instanceId) throws CustomException;
}
